<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
<head></head>
<body>
<div id="fb-root"></div>
<fb:login-button></fb:login-button>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({
    appId: '159760274050584', 
    status: true, 
    cookie: true, 
    xfbml: true
  });

  FB.Event.subscribe('auth.sessionChange', function(response) {
    alert(JSON.stringify(response));
  });

  FB.getLoginStatus(function (response) { alert(JSON.stringify(response)); });

</script>
</body>
</html>
